package com.yunti.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学校对象 base_school
 *
 * @author ruoyi
 * @date 2024-04-22
 */
public class BaseSchool extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学校ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 赛事ID */
    @Excel(name = "赛事ID")
    private Long raceId;

    /** 校徽路径 */
    @Excel(name = "校徽")
    private String badgeSrc;

    /** 学校名称 */
    @Excel(name = "学校名称")
    private String name;

    /** 学校名称 */
    @Excel(name = "排序")
    private String sort;

    /** 学校名称 */
    @Excel(name = "备注")
    private String remark;

    @TableField(exist = false)
    private Long stuNum;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRaceId(Long raceId)
    {
        this.raceId = raceId;
    }

    public Long getRaceId()
    {
        return raceId;
    }
    public void setBadgeSrc(String badgeSrc)
    {
        this.badgeSrc = badgeSrc;
    }

    public String getBadgeSrc()
    {
        return badgeSrc;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getStuNum() {
        return stuNum;
    }

    public void setStuNum(Long stuNum) {
        this.stuNum = stuNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("raceId", getRaceId())
            .append("badgeSrc", getBadgeSrc())
            .append("name", getName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
